package com.lzy.utils;

import com.lzy.constant.Constants;

import java.util.Set;

/**
 * @author lyw
 * @Date 2023/5/16-下午10:17
 */
public class UserUtil {

  public static boolean isAdmin(Set<String> roles) {
    for (String role : roles) {
      if (Constants.ADMIN.equals(role)) {
        return true;
      }
    }
    return false;
  }
}
